package annotation03;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * ClassName: MyAnnotation
 * Package: annotation03
 * Description:
 *
 * @Author 刘英杰
 * @Create 2025/2/3 22:25
 * @Version 1.0
 */

@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation {
    String value();

    String name() default "小张";

    Color color() default Color.RED;
}
